using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskApproving
{
readonly static Action<TaskApproving,object>[] _SetValues=new Action<TaskApproving,object>[]{(r,t)=>r.ActiveTime=Reflection.ParseObject(t, r.ActiveTime),(r,t)=>r.Alias=Reflection.ParseObject(t, r.Alias),(r,t)=>r.InstanceId=Reflection.ParseObject(t, r.InstanceId),(r,t)=>r.Proposer=Reflection.ParseObject(t, r.Proposer),(r,t)=>r.ProposerAlias=Reflection.ParseObject(t, r.ProposerAlias),(r,t)=>r.Sender=Reflection.ParseObject(t, r.Sender),(r,t)=>r.SenderAlias=Reflection.ParseObject(t, r.SenderAlias),(r,t)=>r.ShapeId=Reflection.ParseObject(t, r.ShapeId),(r,t)=>r.Status=Reflection.ParseObject(t, r.Status),(r,t)=>r.Subject=Reflection.ParseObject(t, r.Subject),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Username=Reflection.ParseObject(t, r.Username)};
readonly static string[] _Columns=new string[]{"ActiveTime","Alias","InstanceId","Proposer","ProposerAlias","Sender","SenderAlias","ShapeId","Status","Subject","TaskId","Username"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"ActiveTime", this.ActiveTime);
AppendValue(action,"Alias", this.Alias);
AppendValue(action,"InstanceId", this.InstanceId);
AppendValue(action,"Proposer", this.Proposer);
AppendValue(action,"ProposerAlias", this.ProposerAlias);
AppendValue(action,"Sender", this.Sender);
AppendValue(action,"SenderAlias", this.SenderAlias);
AppendValue(action,"ShapeId", this.ShapeId);
AppendValue(action,"Status", this.Status);
AppendValue(action,"Subject", this.Subject);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Username", this.Username);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[12];
cols[0]= RecordColumn.Column("ActiveTime",this.ActiveTime);
cols[1]= RecordColumn.Column("Alias",this.Alias);
cols[2]= RecordColumn.Column("InstanceId",this.InstanceId);
cols[3]= RecordColumn.Column("Proposer",this.Proposer);
cols[4]= RecordColumn.Column("ProposerAlias",this.ProposerAlias);
cols[5]= RecordColumn.Column("Sender",this.Sender);
cols[6]= RecordColumn.Column("SenderAlias",this.SenderAlias);
cols[7]= RecordColumn.Column("ShapeId",this.ShapeId);
cols[8]= RecordColumn.Column("Status",this.Status);
cols[9]= RecordColumn.Column("Subject",this.Subject);
cols[10]= RecordColumn.Column("TaskId",this.TaskId);
cols[11]= RecordColumn.Column("Username",this.Username);
return cols;
}

}
}

